package zju.ccnt.rest.service.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
import zju.ccnt.exception.BaseWebApplicationException;

/**
 * Created by zha on 14/11/18.
 */
@ResponseStatus(value = HttpStatus.BAD_REQUEST, reason = "Bad request input.")
public class InvalidApiInputException extends BaseWebApplicationException{
    public InvalidApiInputException(String propertyName, String value){
        super(HttpStatus.BAD_REQUEST, value + " is not valid for property " + propertyName);
    }
}
